.class public final Lcom/estrongs/android/pop/zeroconf/c;
.super Lcom/estrongs/android/pop/zeroconf/b;
.source "DNSOutgoing.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/zeroconf/c$a;
    }
.end annotation


# static fields
.field public static n:Z = true


# instance fields
.field h:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private i:I

.field private final j:Lcom/estrongs/android/pop/zeroconf/c$a;

.field private final k:Lcom/estrongs/android/pop/zeroconf/c$a;

.field private final l:Lcom/estrongs/android/pop/zeroconf/c$a;

.field private final m:Lcom/estrongs/android/pop/zeroconf/c$a;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(I)V
    .locals 2

    const/4 v0, 0x1

    const/16 v1, 0x5b4

    .line 1
    invoke-direct {p0, p1, v0, v1}, Lcom/estrongs/android/pop/zeroconf/c;-><init>(IZI)V

    return-void
.end method

.method public constructor <init>(IZI)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, v0, p2}, Lcom/estrongs/android/pop/zeroconf/b;-><init>(IIZ)V

    .line 3
    new-instance p1, Ljava/util/HashMap;

    invoke-direct {p1}, Ljava/util/HashMap;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/pop/zeroconf/c;->h:Ljava/util/Map;

    if-lez p3, :cond_0

    move p1, p3

    goto :goto_0

    :cond_0
    const/16 p1, 0x5b4

    .line 4
    :goto_0
    iput p1, p0, Lcom/estrongs/android/pop/zeroconf/c;->i:I

    .line 5
    new-instance p1, Lcom/estrongs/android/pop/zeroconf/c$a;

    invoke-direct {p1, p3, p0}, Lcom/estrongs/android/pop/zeroconf/c$a;-><init>(ILcom/estrongs/android/pop/zeroconf/c;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/zeroconf/c;->j:Lcom/estrongs/android/pop/zeroconf/c$a;

    .line 6
    new-instance p1, Lcom/estrongs/android/pop/zeroconf/c$a;

    invoke-direct {p1, p3, p0}, Lcom/estrongs/android/pop/zeroconf/c$a;-><init>(ILcom/estrongs/android/pop/zeroconf/c;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/zeroconf/c;->k:Lcom/estrongs/android/pop/zeroconf/c$a;

    .line 7
    new-instance p1, Lcom/estrongs/android/pop/zeroconf/c$a;

    invoke-direct {p1, p3, p0}, Lcom/estrongs/android/pop/zeroconf/c$a;-><init>(ILcom/estrongs/android/pop/zeroconf/c;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/zeroconf/c;->l:Lcom/estrongs/android/pop/zeroconf/c$a;

    .line 8
    new-instance p1, Lcom/estrongs/android/pop/zeroconf/c$a;

    invoke-direct {p1, p3, p0}, Lcom/estrongs/android/pop/zeroconf/c$a;-><init>(ILcom/estrongs/android/pop/zeroconf/c;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/zeroconf/c;->m:Lcom/estrongs/android/pop/zeroconf/c$a;

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/pop/zeroconf/a;Lcom/estrongs/android/pop/zeroconf/e;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    if-eqz p1, :cond_0

    .line 8
    invoke-virtual {p2, p1}, Lcom/estrongs/android/pop/zeroconf/e;->a(Lcom/estrongs/android/pop/zeroconf/a;)Z

    move-result p1

    if-nez p1, :cond_1

    :cond_0
    const-wide/16 v0, 0x0

    .line 9
    invoke-virtual {p0, p2, v0, v1}, Lcom/estrongs/android/pop/zeroconf/c;->a(Lcom/estrongs/android/pop/zeroconf/e;J)V

    :cond_1
    return-void
.end method

.method public a(Lcom/estrongs/android/pop/zeroconf/d;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    new-instance v0, Lcom/estrongs/android/pop/zeroconf/c$a;

    const/16 v1, 0x200

    invoke-direct {v0, v1, p0}, Lcom/estrongs/android/pop/zeroconf/c$a;-><init>(ILcom/estrongs/android/pop/zeroconf/c;)V

    .line 2
    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/zeroconf/c$a;->a(Lcom/estrongs/android/pop/zeroconf/d;)V

    .line 3
    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    .line 4
    array-length v1, v0

    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/c;->p()I

    move-result v2

    if-ge v1, v2, :cond_0

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/b;->d:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/pop/zeroconf/c;->j:Lcom/estrongs/android/pop/zeroconf/c$a;

    const/4 v1, 0x0

    array-length v2, v0

    invoke-virtual {p1, v0, v1, v2}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    return-void

    .line 7
    :cond_0
    new-instance p1, Ljava/io/IOException;

    const-string v0, "message full"

    invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public a(Lcom/estrongs/android/pop/zeroconf/e;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 18
    new-instance v0, Lcom/estrongs/android/pop/zeroconf/c$a;

    const/16 v1, 0x200

    invoke-direct {v0, v1, p0}, Lcom/estrongs/android/pop/zeroconf/c$a;-><init>(ILcom/estrongs/android/pop/zeroconf/c;)V

    const-wide/16 v1, 0x0

    .line 19
    invoke-virtual {v0, p1, v1, v2}, Lcom/estrongs/android/pop/zeroconf/c$a;->a(Lcom/estrongs/android/pop/zeroconf/e;J)V

    .line 20
    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    .line 21
    array-length v1, v0

    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/c;->p()I

    move-result v2

    if-ge v1, v2, :cond_0

    .line 22
    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/b;->f:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 23
    iget-object p1, p0, Lcom/estrongs/android/pop/zeroconf/c;->l:Lcom/estrongs/android/pop/zeroconf/c$a;

    const/4 v1, 0x0

    array-length v2, v0

    invoke-virtual {p1, v0, v1, v2}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    return-void

    .line 24
    :cond_0
    new-instance p1, Ljava/io/IOException;

    const-string v0, "message full"

    invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public a(Lcom/estrongs/android/pop/zeroconf/e;J)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    if-eqz p1, :cond_2

    const-wide/16 v0, 0x0

    cmp-long v2, p2, v0

    if-eqz v2, :cond_0

    .line 10
    invoke-virtual {p1, p2, p3}, Lcom/estrongs/android/pop/zeroconf/e;->b(J)Z

    move-result v0

    if-nez v0, :cond_2

    .line 11
    :cond_0
    new-instance v0, Lcom/estrongs/android/pop/zeroconf/c$a;

    const/16 v1, 0x200

    invoke-direct {v0, v1, p0}, Lcom/estrongs/android/pop/zeroconf/c$a;-><init>(ILcom/estrongs/android/pop/zeroconf/c;)V

    .line 12
    invoke-virtual {v0, p1, p2, p3}, Lcom/estrongs/android/pop/zeroconf/c$a;->a(Lcom/estrongs/android/pop/zeroconf/e;J)V

    .line 13
    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object p2

    .line 14
    array-length p3, p2

    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/c;->p()I

    move-result v0

    if-ge p3, v0, :cond_1

    .line 15
    iget-object p3, p0, Lcom/estrongs/android/pop/zeroconf/b;->e:Ljava/util/List;

    invoke-interface {p3, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/pop/zeroconf/c;->k:Lcom/estrongs/android/pop/zeroconf/c$a;

    const/4 p3, 0x0

    array-length v0, p2

    invoke-virtual {p1, p2, p3, v0}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    goto :goto_0

    .line 17
    :cond_1
    new-instance p1, Ljava/io/IOException;

    const-string p2, "message full"

    invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_2
    :goto_0
    return-void
.end method

.method public n()Z
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/b;->e()I

    move-result v0

    const v1, 0x8000

    and-int/2addr v0, v1

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public p()I
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/zeroconf/c;->i:I

    add-int/lit8 v0, v0, -0xc

    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/c;->j:Lcom/estrongs/android/pop/zeroconf/c$a;

    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->size()I

    move-result v1

    sub-int/2addr v0, v1

    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/c;->k:Lcom/estrongs/android/pop/zeroconf/c$a;

    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->size()I

    move-result v1

    sub-int/2addr v0, v1

    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/c;->l:Lcom/estrongs/android/pop/zeroconf/c$a;

    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->size()I

    move-result v1

    sub-int/2addr v0, v1

    iget-object v1, p0, Lcom/estrongs/android/pop/zeroconf/c;->m:Lcom/estrongs/android/pop/zeroconf/c$a;

    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->size()I

    move-result v1

    sub-int/2addr v0, v1

    return v0
.end method

.method public q()[B
    .locals 5

    .line 1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 2
    iget-object v2, p0, Lcom/estrongs/android/pop/zeroconf/c;->h:Ljava/util/Map;

    invoke-interface {v2}, Ljava/util/Map;->clear()V

    .line 3
    new-instance v2, Lcom/estrongs/android/pop/zeroconf/c$a;

    iget v3, p0, Lcom/estrongs/android/pop/zeroconf/c;->i:I

    invoke-direct {v2, v3, p0}, Lcom/estrongs/android/pop/zeroconf/c$a;-><init>(ILcom/estrongs/android/pop/zeroconf/c;)V

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/b;->f()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/zeroconf/c$a;->writeShort(I)V

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/b;->e()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/zeroconf/c$a;->writeShort(I)V

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/b;->j()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/zeroconf/c$a;->writeShort(I)V

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/b;->h()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/zeroconf/c$a;->writeShort(I)V

    .line 8
    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/b;->i()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/zeroconf/c$a;->writeShort(I)V

    .line 9
    invoke-virtual {p0}, Lcom/estrongs/android/pop/zeroconf/b;->g()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/zeroconf/c$a;->writeShort(I)V

    .line 10
    iget-object v3, p0, Lcom/estrongs/android/pop/zeroconf/b;->d:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_0

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/pop/zeroconf/d;

    .line 11
    invoke-virtual {v2, v4}, Lcom/estrongs/android/pop/zeroconf/c$a;->a(Lcom/estrongs/android/pop/zeroconf/d;)V

    goto :goto_0

    .line 12
    :cond_0
    iget-object v3, p0, Lcom/estrongs/android/pop/zeroconf/b;->e:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_1

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/pop/zeroconf/e;

    .line 13
    invoke-virtual {v2, v4, v0, v1}, Lcom/estrongs/android/pop/zeroconf/c$a;->a(Lcom/estrongs/android/pop/zeroconf/e;J)V

    goto :goto_1

    .line 14
    :cond_1
    iget-object v3, p0, Lcom/estrongs/android/pop/zeroconf/b;->f:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_2
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_2

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/pop/zeroconf/e;

    .line 15
    invoke-virtual {v2, v4, v0, v1}, Lcom/estrongs/android/pop/zeroconf/c$a;->a(Lcom/estrongs/android/pop/zeroconf/e;J)V

    goto :goto_2

    .line 16
    :cond_2
    iget-object v3, p0, Lcom/estrongs/android/pop/zeroconf/b;->g:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_3
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_3

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/pop/zeroconf/e;

    .line 17
    invoke-virtual {v2, v4, v0, v1}, Lcom/estrongs/android/pop/zeroconf/c$a;->a(Lcom/estrongs/android/pop/zeroconf/e;J)V

    goto :goto_3

    .line 18
    :cond_3
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    return-object v0
.end method
